package ace.handling;

import java.util.Hashtable;

import gov.nist.atlas.Annotation;
import gov.nist.atlas.Id;
import gov.nist.atlas.impl.IdImpl;

import org.mitre.jawb.atlas.SubordinateSetsAnnotation;

public class Relation {

	protected String id;
	protected String type;
	protected String subType;
	protected Document doc;
	private Entity argument1;
	private Entity argument2;
	
	
	protected Relation(Id id){

		this.id = id.getAsString();		

	}
	
	public Relation(String type, Entity e1, Entity e2, String idSub, int index) {
		this.id = idSub + "-" + index;
		this.type = type;
		this.subType = type;
		this.argument1 = e1;
		this.argument2 = e2;
	}

	public void setArgument1(Entity arg1) {
		
		this.argument1 = arg1;
		
	}

	public void setArgument2(Entity arg2) {
		
		this.argument2 = arg2;
		
	}

	public Entity getArgument1() {
		return argument1;
	}

	public Entity getArgument2() {
		return argument2;
	}

	public String getId() {
		return id;
	}

}
